Solving Systems of Three Equations with substitution